// 删除数据

async function deleteOne (collection, filter) {
    const result = await collection.deleteOne(filter)
    return result;
}
async function deleteMany (collection, filter) {
    const ids = { _id: { $in: filter } };
    const result = await collection.deleteMany(ids)
    return result;
}
module.exports = {
	deleteOne,
	deleteMany
}